<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>旋转</title>
		<style type="text/css">
			.xunzhuan{
				width: 300px;
				height: 300px;
				background-image: url(images/diqiu.png);
				border-radius: 150px;
				
				position: relative;
				animation: run 15s linear infinite;
			}
			/* 变形（形状的变化）transform 
			rotate 旋转
			*/
			@keyframes run{
				from{
					left: -300px;
					transform: rotate(0deg);
				}
				to{
					left: 1300px;
					transform: rotate(360deg);
				}
			}
			.xunzhuan:hover{
				/* 鼠标移入，地球暂停 */
				animation-play-state: paused;
			}
		</style>
	</head>
	<body>
		<div class="xunzhuan"></div>
	</body>
</html>
